package
{
	import com.mcglib.flac.ComboBox;
	
	import flash.display.Sprite;
	
	public class ComboboxTest extends Sprite
	{
		private var comboBox:ComboBox;
		
		public function ComboboxTest()
		{
			super();

			var cui:combox_ui = new combox_ui;
			
			comboBox = new ComboBox(cui);
			
			addChild(cui);
			
			var arr:Array = [];
			while(arr.length<10){
				arr.push({label:arr.length});
			}
			
			comboBox.labelFiled = "label";
			comboBox.dataProvide  = arr;
			comboBox.selectedIndex =1;
			comboBox.present();
		}
	}
}